"use strict";
const nodemailer = require("nodemailer");
const user = {
  user: "1299475789@qq.com",
  pass:"eqslzoujdtnngccf",
}


  //创建传输对象
  let transporter = nodemailer.createTransport({
    host: "smtp.qq.com",
    port: 465,
    secure: true, // true for 465, false for other ports
    auth: {
     ...user,
    },
  });
  transporter.sendMail({
    from: '"xiaotao" <1299475789@qq.com>', // 发送人的账号
    to: "1506714404@qq.com", //接收人的账号
    subject: "您正在登录苏宁易购", // Subject line
    
    html: "请前往查看", // html body
  });

 